The QTGetAccessKeys function returns all the application and system access keys of a specified access key type.
pascal OSErr QTGetAccessKeys (Str255 accessKeyType, long flags, QTAtomContainer *keys);
The QT atom container returned by this function contains atoms of type kAccessKeyAtomType at the top level. These atoms contain the keys. You can get the key values by using QT atom functions described in "QuickTime Atoms" . In the QT atom container, application keys (which are more likely to be the ones an application needs) appear before system keys.
If there are no access keys of the specified type, the function returns an empty QT atom container.
When your software is done with the QT atom container, it must dispose of it by calling the QTDisposeAtomContainer function.
The QTRegisterAccessKey function registers an access key.
pascal OSErr QTRegisterAccessKey (Str255 accessKeyType, long flags, Handle accessKey);
The QTUnregisterAccessKey function removes a previously registered access key.
pascal OSErr QTUnregisterAccessKey (Str255 accessKeyType, long flags, Handle accessKey);
| Previous | Chapter Contents | Chapter Top | Next |